<template>
	<view>
		<notify></notify>
		<view v-for="(movieData,index) in movieDataList" :key="index">
			<group-list :groupData="movieData"></group-list>
		</view>
	</view>
</template>

<script>
	import notify from '@/components/notify.vue'
	import groupList from '@/components/group-list.vue'
	import api from '@/api/index.js'
	export default {
		data() {
			return {
				movieDataList:[]
			}
		},
		created(){
			this.load()
		},
		components: {
			notify,
			groupList
		},
		methods: {
			async load() {
				let movieDataList = await api.movieDataList()
				this.movieDataList=movieDataList
			}
		},
		onPullDownRefresh() {
			this.load()
			uni.stopPullDownRefresh();
		}
	}
</script>

<style>

</style>
